body{
    background-color: #282828;
}
#index{
    padding: 10px;
}
#attrbar{
    min-height: 40px;
    line-height: 40px;
    background-color: #535353;
    margin-bottom: 10px;
    padding: 0 10px;
    .attr-field{
        display: inline-block;
        position: relative;
        padding-right: 10px;
        span{
            color: #fff;
        }
        $input_bg:#454545;
        $input_bd:#666;
        .textbox{
            border-radius: 3px;
            padding-left: 5px;
            padding-right: 5px;
            margin: 0 8px;
            border: 1px solid $input_bd;
            outline: 0;
            width: 80px;
            background-color: $input_bg;
            color: #fff;
        }
        .checkbox{
            border: 1px solid $input_bd;
            background-color: $input_bg;
            display: inline-block;
            position: relative;
            width: 16px;
            height: 16px;
            margin: 0 8px;
            vertical-align: middle;
            position: relative;
            border-radius: 2px;
            &.checked{
                &:after{
                    display: block;
                }
            }
            &:after{
                display: none;
                position: absolute;
                left: 5px;
                top: 1px;
                border: 2px solid #fff;
                border-left: 0;
                border-top: 0;
                height: 7px;
                width: 3px;
                content: "";
                transform: rotate(45deg) scaleY(1);
            }
        }
        $select_height:20px;
        $select_width:80px;
        .select{
            border: 1px solid $input_bd;
            display: inline-block;
            border-radius: 2px;
            vertical-align: middle;
            height: $select_height;
            width: $select_width;
            margin: 0 8px;
            background: $input_bg;
            position: relative;
            line-height: 1.5;
            .selected{
                position: absolute;
                color: #fff;
                top: 0px;
                margin: 0 0 0 5px;
                width: 100%;
            }
            .options{
                overflow: hidden;
                background-color: #fff;
                position: absolute;
                top: $select_height + 2;
                width: $select_width - 2;
                border: 1px solid #999;
                z-index: 999;
                transition: height .3s ease-in-out;
                &.hide{
                    height: 0;
                    border: 0;
                }
                li{
                    padding: 2px;
                    &:hover{
                        background-color: #999;
                        color: #fff;
                    }
                }
            }
            &:after{
                position: absolute;
                right: 5px;
                top: 3px;
                border: 1px solid #eee;
                border-left: 0;
                border-top: 0;
                height: 5px;
                width: 5px;
                content: "";
                transform: rotate(45deg) scaleY(1);
            }
        }
        .colorpick{
            border: 1px solid $input_bd;
            display: inline-block;
            border-radius: 2px;
            vertical-align: middle;
            height: $select_height;
            width: $select_width;
            margin: 0 8px;
        }
        &:after{
            position: absolute;
            content: "";
            display: block;
            border-right: 1px solid #3e3e3e;
            right: 10px;
            top: 12px;
            height: 18px;
        }
    }
    .toolkit-icons{
        vertical-align: middle;
        height: 20px;
        width: 20px;
        border-radius: 4px;
    }
}
.index-content{
    position: relative;
    clear: both;
}
#tookbox{
    position: absolute;
    height: 600px;
    width: 40px;
    border: 2px solid #424242;
    border-top: 8px solid #424242;
    border-radius: 3px;
    background-color: #535353;
    text-align: center;
    padding-top: 5px;
    .toolkit-icons{
        width: 28px;
        height: 28px;
        border: 1px solid #636363;
        border-radius: 4px;
        &:hover{
            background-color: rgba(255,255,255,.1);
        }
        &.active{
            background-color: rgba(255,255,255,.1);
        }
    }

}

#canvas{
    $outline1:#99CCFF;
    $outline2:#FFCC99;
    &.dragging,.dragging{
        outline: 4px solid $outline1;
    }
    [class^="layer-"]{
        &.editting{
            outline: 4px solid $outline2;
        }
        &.moving{
            cursor: move;
        }
    }

}
.index-canvas{
    padding-left: 50px;
    user-select: none;
    .canvas-wrapper{
        // overflow: hidden;
        background-color: #fff;
        max-height: 1000px;
    }
}
.color-picker-wrapper{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top:-100px;
    margin-left: -100px;
    z-index: 999;
    .header{
        height: 20px;
        background-color: #3e3e3e;
        cursor: move;
    }
    &.active{
        display:block;
    }
    .colpick{
        border-radius: 0;
    }
}